package com.henghai.zhenxuan.data.api;

import androidx.annotation.NonNull;

import com.henghai.zhenxuan.data.config.AppConfig;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

public class UpdateUserApi implements IRequestApi, IRequestType {

    private String nickName;
    private String avatar;
    private String userName;

    public UpdateUserApi(String avatar, String nickName) {
        this.nickName = nickName;
        this.avatar = avatar;
        this.userName = AppConfig.INSTANCE.getMConfigs().userName().get();
    }

    @NonNull
    @Override
    public String getApi() {
        return "/system/user/updateUser";
    }

    @NonNull
    @Override
    public BodyType getBodyType() {
        return BodyType.JSON;
    }
}
